#include<bits/stdc++.h>
using namespace std;
int main()
{
	int t;
	cin>>t;
	while(t--)
	{
		int n;
		cin>>n;
		int flag = 0;
		vector<long long> a(n);
		for(int i = 1;i <= n;i++)
		{
			cin>>a[i-1];
			if(a[i-1]&1)
				flag = 1;
		}
			
		long long sum = accumulate(a.begin(), a.end(), 0);
		if(flag)
			cout<<"NO"<<endl;
		else if(sum % 4)
			cout<<"NO"<<endl;
		else
			cout<<"YES"<<endl;
	}
	return 0;
}

